-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ui): updates + dynamically sized window #16
Conversation
Need to still utilize the progressbar, update docs, and clean code more but this is a good start. Please: DO NOT TOUCH. @im-coder-lg, please comment that you've read this.
Again, NO TOUCHY! |
I would love it if eventually we used a web-scraper rather than using an API to make it scalable and free forever. |
Artifact build is not working for me but local source running is successful. |
@Moosems I saw this, and as you said, I no touchy.
How about migrating to PyOWM? It seems to use the API but also format the data too, so we could perhaps migrate to that. I'll keep my eye on this, and if you need any help, just ask. |
I'll test it on my computer as well as my cloud Gitpod instance. @Moosems about the dynamic scaling, are you going to try to update the values after a search for the city is done? I did that on the dynamic-scaling branch, and it works well. I think this is the way most could go, but if you have another idea, can you delete the branch? We don't have a use for it anymore. I'm updating the title, description and adding this to the repo project for tracking progress. Just slight changes. |
hello |
hi, good to see you back |
i kinda lost motivation for programming after that one bug in notes that i couldn’t fix |
tkinter is frustrating sometimes. ive kinda moved on from tkinter programming at this point, and am learning newer things, so even i dont contribute much these days. |
i just think that tkinters simplicity is nice so i am kinda hanging onto it |
Couldn't load before the results came in so effectively useless.
Will make settings UI. |
Need to set up a simple file system, saving to it, and update the label info based on the systems. |
Sorry @Moosems, I had to do it, now the artifacts could be fixed.
@Moosems I added |
Wait, I know there is an error with the artifact, I know the fix. 1 min! |
I reverted my changes. @Moosems the artefacts don't recognise |
@im-coder-lg Wait to touch the PR until I'm done please, still making some large changes ;). |
I'll get the artifacts fixed, don’t worry. |
Mac builds run fine from artifacts but now Linux is acting up. |
cityname = data["name"] + ", " + data["sys"]["country"]
# Set the city name
self.cityname.configure(text=f"City: {cityname}") This. If you add this to
Okay, but do it fast! Linux builds don't work due to the addition of Sun Valley.
Okay, but make sure the
Have you checked the |
@im-coder-lg Note that using different Springfield's (there's multiple cities named Springfield in the US) returns the same data. It makes no distinction between those in different states.
You are clear to work on the Linux builds. Try to keep changes minimal if possible. |
I only added hooks. Would you open a discussion asking for thoughts on the PyInstaller repo? |
Okay, but can't do today :( got too much of backlog to finish here. I still don't know how it accumulates. 🤔 Of course, I'll check with PyInstaller devs on this behaviour. I might have to mention this PR there, but we'll see. Add your changes and let's wait and watch. |
I'd give them the hook file, spec file, and then the traceback and leave it there, no need to link a big PR. |
Posted a discussion over at PyInstaller: https://github.com/orgs/pyinstaller/discussions/7869 I linked the repo and the files, and only that, so this PR isn't linked but is accessible. I hope I get an answer to the issue soon. |
There was a response. @im-coder-lg could you have the Linux build use a newer Python version? |
3.9 or sooner. |
Or maybe a |
We would have to rebase from |
Oh, fixed it with GitHub's UI. I thought we had to use Git :/ |
Ready to merge? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self.cityname.grid(row=1, column=0, columnspan=2) | ||
|
||
self.searchbar = Entry(self.main_frame, width=42) | ||
self.searchbar.grid(row=2, column=0, columnspan=2, padx=10, pady=10) | ||
self.bind("<Return>", self.OWMCITY) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is good to notice this! I tried using the same bind()
function, but it didn't work. Maybe because I had to use command= self.OWMCITY
. I'll test this after lunch.
main.py
Outdated
|
||
# Set the city name | ||
self.cityname.configure(text=f"City: {city}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Set the city name | |
self.cityname.configure(text=f"City: {city}") | |
cityname = data["name"] + ", " + data["sys"]["country"] | |
# Set the city name | |
self.cityname.configure(text=f"City: {cityname}") |
SUGGESTION
This change is simple: it takes the name of the city from the API(data["name"
) and adds it with the country code(data["sys"]["country"]
). Now, even if a person enters a redundant name, it will change to the official name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you please put it all in the f-string?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, isn't it already in a f-string? What are you referring to?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for a variable is what I mean.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, now I get it. I'll fix it, I need some time. It's already nearing midnight and I'm doing homework. The Life of A Teenage Coder?
I will commit it, no problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you do that, I will not work on it though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can improve the layout if you make a better one window idea though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But then how can we integrate the settings into our main window?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It already is. It could use a better design, sure, but a whole window for two settings? That's a little over the top.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could repurpose the same window for settings too. Any ideas on this type? We could use a tabbed window. I'll explain.
Need to still utilize the progressbar, update docs, and clean code more but this is a good start. Please: DO NOT TOUCH. @im-coder-lg, please comment that you've read this.
Closes #15